package com.tbvtc.agriculturalcreditchainserver2025.exception;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
//        try {
//            throw new leaseException(400,"用户名或密码错误");
//        } catch (leaseException e) {
//            System.out.println(e.getCode());
//            System.out.println(e.getMessage());
//        }
        Scanner sc =new Scanner(System.in);
        String next = sc.next();
        if (next.equals("123")){
            throw new FoodException(400,"用户名或密码错误");
        }
    }
}
